<?php
	include("inc.aplication_top.php");
	$objUtilitarios = new Utilitarios();
	if(isset($_GET['cartelera_fotos'])){
		$img = $objUtilitarios->subirImagenCarpeta($_FILES['Filedata']['tmp_name'], $_FILES['Filedata']['name'], 'carteleras_fotos');
		$objCarteleraGaleria = new CarteleraGaleria();
		echo $objCarteleraGaleria->agregarFotos($img, $_GET['id_cartelera']);
	}
?>